import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/components/Login'
import Index from '@/components/Index'
import Miss from '@/components/Miss'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/login',
      name: 'login',
      component: Login,
      meta: {
        requireAuth: false
      }
    },
    {
      path: '/index',
      name: 'index',
      component: Index,
      children: [],
      meta: {
        requireAuth: true
      }
    },
    {
      path: '/miss',
      name: 'miss',
      component: Miss,
      meta: {
        requireAuth: false
      }
    }
  ]
})
